package tiantao.taogu.TgEnum;


public enum PaymentDealTypeEnum {

  TELEPHONE_CONSULTATION("电话咨询支付", 0, "付费咨询"),
  FACE_CONSULTATION("当面咨询支付", 1, "当面咨询"),
  MEDICINE_DEAL("IM购药支付", 2, "药品在线销售"),
  APPOINTMENT_DEAL("预约挂号支付", 3, "预约挂号缴费"),
  REGISTRATION_DEAL("当日挂号支付", 4, "当日挂号缴费"),
  PRESCRIPTION_DEAL("医院处方支付", 5, "处方缴费"),
  VIP_CARD_PAY("会员卡支付", 6, "会员卡支付"),
  HOSPITAL_DEPOSIT("补交住院押金", 7, "补交住院押金"),
  PRE_MEDICNE_DEAL("处方药品支付", 8, "处方药品缴费"),
  VIDEO_CONSULTATION("视频问诊支付", 9, "视频问诊缴费"),
  MEMBER_RECHARGE("用户充值支付", 10, "用户充值缴费"),
  MEMBER_OPEN("开通会员支付", 11, "开通会员缴费"),
  EXAMINATION_SET("预约体检缴费", 12, "预约体检缴费"),
  PREFERENTIAL_RECHARGE("滨海开通会员", 13, "开通会员"),
  IMAGETEXT_CONSULTATION("图文问诊支付", 14, "图文问诊"),
  MULTI_PRESCRIPTION_DEAL("多处方合并缴费", 15, "多处方合并缴费"),
  REGISTRATION_RECHARGE("就诊卡充值支付", 16, "就诊卡充值支付"),
  COPY_CASE_PAY("病历复印支付", 17, "病历复印支付"),
  ONLINE_DIAGNOSE("在线就诊",18,"互联网医院-在线就诊服务"),
  ONLINE_PRESCRIPTION_DEAL("互联网医院处方缴费",19,"互联网医院处方缴费"),
  PRESCRIPTION_DEAL_BATCH("医院处方支付",20,"处方批量缴费"),
  PUBLIC_WELFARE("红十字捐款",21,"红十字捐款");

  private String name;
  private int id;
  private String chargeBody;


    PaymentDealTypeEnum(String name, int id, String chargeBody) {
    this.name = name;
    this.id = id;
    this.chargeBody = chargeBody;
    }



  public static PaymentDealTypeEnum fromName(String name) {
    for (PaymentDealTypeEnum o : PaymentDealTypeEnum.values()) {
      if (o.name().equals(name)) {
        return o;
      }
    }
    return null;
  }

  public static PaymentDealTypeEnum fromId(int id) {
    for (PaymentDealTypeEnum o : PaymentDealTypeEnum.values()) {
      if (o.getId() == id) {
        return o;
      }
    }
    return null;
  }

    public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getChargeBody() {
    return chargeBody;
  }

  public void setChargeBody(String chargeBody) {
    this.chargeBody = chargeBody;
  }

}